//
//  TMHeaderView.swift
//  GZWeibo007
//
//  Created by denjunjie1 on 15/12/24.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class TMHeaderView: UIView {
    
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        prepareUI()
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func prepareUI (){
        
        addSubview(commentButton)
        
        commentButton.ff_AlignInner(type: ff_AlignType.CenterLeft, referView: self, size: commentButton.bounds.size, offset: CGPoint(x: 10, y: 0))
        
        
    }
    
    
    private lazy var commentButton: UIButton = {
        let button = UIButton()
        
        button.setTitle("评论", forState: UIControlState.Normal)
        
        button.titleLabel?.font = UIFont.systemFontOfSize(11)
        
        return button
    }()
    
    
    
    
}
